package com.itheima.demo001;

public class exercise31 {
    public static void main(String[] args) {
        //求长方形的周长
        getLength(5.2,1.3);
        //求圆的面积
        getArea(3);
    }
    public static void getLength(double len, double width){
        double result = (len + width) * 2;
        //len长  width宽
        System.out.println(result);
    }
    public static void getArea(double radius){
        double result = radius * radius * 3.14;
        System.out.println(result);
    }
}
